package com.xingfei.blog.model;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Table(name = "blog_user")
public class UserDO implements Serializable {

    /**
     * 用户详细信息封装
     */
    @Transient
    private UserInfoDO userInfoDO ;

    public UserInfoDO getUserInfoDO() {
        return userInfoDO;
    }

    public void setUserInfoDO(UserInfoDO userInfoDO) {
        this.userInfoDO = userInfoDO;
    }

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column blog_user.id
     *
     * @mbggenerated Tue Mar 21 10:24:49 CST 2017
     */
    @Id
    @GeneratedValue(generator = "JDBC")
    private Long id;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column blog_user.email
     *
     * @mbggenerated Tue Mar 21 10:24:49 CST 2017
     */
    private String email;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column blog_user.email_is_active
     *
     * @mbggenerated Tue Mar 21 10:24:49 CST 2017
     */
    private String emailIsActive;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column blog_user.phone
     *
     * @mbggenerated Tue Mar 21 10:24:49 CST 2017
     */
    private String phone;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column blog_user.password
     *
     * @mbggenerated Tue Mar 21 10:24:49 CST 2017
     */
    private String password;

    /**
     * 用户昵称
     */
    private String userName;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column blog_user.create_time
     *
     * @mbggenerated Tue Mar 21 10:24:49 CST 2017
     */
    private Date createTime;

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column blog_user.id
     *
     * @return the value of blog_user.id
     *
     * @mbggenerated Tue Mar 21 10:24:49 CST 2017
     */
    public Long getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column blog_user.id
     *
     * @param id the value for blog_user.id
     *
     * @mbggenerated Tue Mar 21 10:24:49 CST 2017
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column blog_user.email
     *
     * @return the value of blog_user.email
     *
     * @mbggenerated Tue Mar 21 10:24:49 CST 2017
     */
    public String getEmail() {
        return email;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column blog_user.email
     *
     * @param email the value for blog_user.email
     *
     * @mbggenerated Tue Mar 21 10:24:49 CST 2017
     */
    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column blog_user.email_is_active
     *
     * @return the value of blog_user.email_is_active
     *
     * @mbggenerated Tue Mar 21 10:24:49 CST 2017
     */
    public String getEmailIsActive() {
        return emailIsActive;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column blog_user.email_is_active
     *
     * @param emailIsActive the value for blog_user.email_is_active
     *
     * @mbggenerated Tue Mar 21 10:24:49 CST 2017
     */
    public void setEmailIsActive(String emailIsActive) {
        this.emailIsActive = emailIsActive == null ? null : emailIsActive.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column blog_user.phone
     *
     * @return the value of blog_user.phone
     *
     * @mbggenerated Tue Mar 21 10:24:49 CST 2017
     */
    public String getPhone() {
        return phone;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column blog_user.phone
     *
     * @param phone the value for blog_user.phone
     *
     * @mbggenerated Tue Mar 21 10:24:49 CST 2017
     */
    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column blog_user.password
     *
     * @return the value of blog_user.password
     *
     * @mbggenerated Tue Mar 21 10:24:49 CST 2017
     */
    public String getPassword() {
        return password;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column blog_user.password
     *
     * @param password the value for blog_user.password
     *
     * @mbggenerated Tue Mar 21 10:24:49 CST 2017
     */
    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column blog_user.create_time
     *
     * @return the value of blog_user.create_time
     *
     * @mbggenerated Tue Mar 21 10:24:49 CST 2017
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column blog_user.create_time
     *
     * @param createTime the value for blog_user.create_time
     *
     * @mbggenerated Tue Mar 21 10:24:49 CST 2017
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}